package com.trgis.qtmap.message;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class MessageServer implements MessageListener{

	public MessageServer() {
		System.out.println("Create RabbitMQ Server");
	}
	
	@Override
	public void onMessage(Message message) {
		System.out.println("Msg:"+message.getBody());
	}
}
